package com.mall.user.controller;

import com.mall.common.response.CommonResponse;
import com.mall.entity.TbUserRecharge;
import com.mall.user.service.UserRechargeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/userRecharge")
public class UserRechargeController {

    @Autowired
    private UserRechargeService userRechargeService;

    @PostMapping("/userRecharge")
    public CommonResponse userRecharge(
            @RequestBody TbUserRecharge userRecharge
            ){
        return userRechargeService.userRecharge(userRecharge);
    }


}
